package com.yra.domain;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * @Author: yrq
 * @Date: Create in 10:38 2019/12/17
 */
public class Carousel {
    private int carouselId;
    private String carouselImg;
    private String redirectUrl;
    private int carouselRank;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    public int getCarouselId() {
        return carouselId;
    }

    public void setCarouselId(int carouselId) {
        this.carouselId = carouselId;
    }

    public String getCarouselImg() {
        return carouselImg;
    }

    public void setCarouselImg(String carouselImg) {
        this.carouselImg = carouselImg;
    }

    public String getRedirectUrl() {
        return redirectUrl;
    }

    public void setRedirectUrl(String redirectUrl) {
        this.redirectUrl = redirectUrl;
    }

    public int getCarouselRank() {
        return carouselRank;
    }

    public void setCarouselRank(int carouselRank) {
        this.carouselRank = carouselRank;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "Carousel{" +
                "carouselId=" + carouselId +
                ", carouselImg='" + carouselImg + '\'' +
                ", redirectUrl='" + redirectUrl + '\'' +
                ", carouselRank=" + carouselRank +
                ", createTime=" + createTime +
                '}';
    }
}
